From: Claudio Cambra Date: Thu, 28 Nov 2024 09:41:55 +0000 (+0800) Subject: Do not use const char * to add data to crypto hash X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~173^2~15 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=0da3c6d3b9ef8ab3554891d47a6f69ff67a6bdbc;p=nextcloud-desktop.git Do not use const char * to add data to crypto hash method is deprecated Signed-off-by: Claudio Cambra fix qbyte Signed-off-by: Claudio Cambra --- diff --git a/src/common/checksumcalculator.cpp b/src/common/checksumcalculator.cpp index ec9faa2de..acd19d4c6 100644 --- a/src/common/checksumcalculator.cpp +++ b/src/common/checksumcalculator.cpp @@ -170,7 +170,7 @@ bool ChecksumCalculator::addChunk(const QByteArray &chunk, const qint64 size) } else { Q_ASSERT(_cryptographicHash); if (_cryptographicHash) { - _cryptographicHash->addData(chunk.data(), size); + _cryptographicHash->addData(chunk); return true; } }